package com.lagou.springboot.pojo;

public class Page {
    int firstPage;
    int lastPage;
    int previousPage;
    int nextPage;

    public int getFirstPage() {
        return firstPage;
    }

    public void setFirstPage(int firstPage) {
        this.firstPage = firstPage;
    }

    public int getLastPage() {
        return lastPage;
    }

    public void setLastPage(int lastPage) {
        this.lastPage = lastPage;
    }

    public int getPreviousPage() {
        return previousPage;
    }

    public void setPreviousPage(int previousPage) {
        this.previousPage = previousPage;
    }

    public int getNextPage() {
        return nextPage;
    }

    public void setNextPage(int nextPage) {
        this.nextPage = nextPage;
    }

    @Override
    public String toString() {
        return "Page{" +
                "firstPage=" + firstPage +
                ", lastPage=" + lastPage +
                ", previousPage=" + previousPage +
                ", nextPage=" + nextPage +
                '}';
    }
}
